function showKey(ev){
		var buf="";
		var d=document.getElementById("dKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber(n){
	document.getElementById("txtPwd").value+=n;
}
function doClear(){
	document.getElementById("txtPwd").value="";
}

function doClose(){
	document.getElementById("dKey").style.display="none";
}

/* 以上是支出金额的数字输入键盘  */


/* 以下是收入金额的数字输入键盘*/
function showKey1(ev){
		var buf="";
		var d=document.getElementById("shouruKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber1("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear1()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose1()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber1(n){
	document.getElementById("shouru").value+=n;
}



function doClear1(){
	document.getElementById("shouru").value="";
}



function doClose1(){
	document.getElementById("shouruKey").style.display="none";
}

/* 以上是收入金额的数字输入键盘  */

/* 以下是转账金额的数字输入键盘  */

function showKey2(ev){
		var buf="";
		var d=document.getElementById("transferKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber2("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear2()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose2()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber2(n){
	document.getElementById("transfer").value+=n;
}

function doClear2(){
	document.getElementById("transfer").value="";
}

function doClose2(){
	document.getElementById("transferKey").style.display="none";
}

/* 以上是转账金额的数字输入键盘*/


/* 以下是借入金额的数字输入键盘*/
function showKey3(ev){
		var buf="";
		var d=document.getElementById("jieruKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber3("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear3()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose3()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber3(n){
	document.getElementById("jieru").value+=n;
}

function doClear3(){
	document.getElementById("jieru").value="";
}

function doClose3(){
	document.getElementById("jieruKey").style.display="none";
}

/* 以上是借入金额的数字输入键盘*/

/* 以下是借出金额的数字输入键*/
function showKey4(ev){
		var buf="";
		var d=document.getElementById("jiecuKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber4("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear4()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose4()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber4(n){
	document.getElementById("jiecu").value+=n;
}

function doClear4(){
	document.getElementById("jiecu").value="";
}

function doClose4(){
	document.getElementById("jiecuKey").style.display="none";
}
/* 以上是借出金额的数字输入键*/

/* 以下是还款金额的数字输入键*/
function showKey5(ev){
		var buf="";
		var d=document.getElementById("huankuanKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber5("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear5()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose5()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber5(n){
	document.getElementById("huankuan").value+=n;
}

function doClear5(){
	document.getElementById("huankuan").value="";
}

function doClose5(){
	document.getElementById("huankuanKey").style.display="none";
}

/* 以上是还款金额的数字输入键*/


/* 以下是收债金额的数字输入键*/
function showKey6(ev){
		var buf="";
		var d=document.getElementById("souzaiKey");
		var exist="";
		var rn;
		var srn;
		buf="<table width='120' height='160'><tbody>";
		for(var i=0;i<10;i++){
			do{
				rn=Math.floor(Math.random()*10);
				srn=""+rn;
			}while(exist.indexOf(srn)!=-1);
			exist+=srn;
			if(i%3==0)
				buf+="<tr>";
			buf+="<td><input class='btnNum' type='button' value='"+
				srn+"' onclick='doNumber6("+srn+")' /></td>";
			if(i%3==2)
				buf+="</tr>";
		}
		buf+="<td><input class='btnOp' type='button' value='C'"+
			" onclick='doClear6()' /></td>";
		buf+="<td><input class='btnOp' type='button' value='X'"+
			" onclick='doClose6()' /></td></tr>";
		buf+="</tbody></table>";
		d.innerHTML=buf;
		var x,y;
		if(window.event){
			x=event.clientX;
			y=event.clientY;
		}
		else{
			x=ev.clientX;
			y=ev.clientY;
		}				
		d.style.left=x-40;
		d.style.top=y+8;
		d.style.display="block";		
}

function doNumber6(n){
	document.getElementById("souzai").value+=n;
}

function doClear6(){
	document.getElementById("souzai").value="";
}

function doClose6(){
	document.getElementById("souzaiKey").style.display="none";
}

/* 以上是收债金额的数字输入键*/


